package com.shux.common.dao;

import java.util.List;

import com.shux.utils.page.Page;

public interface IBaseBeanDao<T> {
    
    String getWorkSpaceName();
    
    @SuppressWarnings("hiding")
    public <T> int saveEntity(String sqlId, T obj) throws Exception;
    
    @SuppressWarnings("hiding")
    public <T> int update(String sqlId, T obj) throws Exception;
    
    /**
     * 删除对象
     * 
     * @param str
     * @param param
     * @return
     * @throws Exception
     */
    public int delete(String sqlId, T param) throws Exception;
    
    /**
     * 查找对象
     * 
     * @param str
     * @param param
     * @return
     * @throws Exception
     */
    public T findForObject(String sqlId, Object param) throws Exception;
    
    
    /**
     * 查找对象
     * 
     * @param str
     * @param param
     * @return
     * @throws Exception
     */
    public List<T> findForList(String sqlId, Object param) throws Exception;
    
}
